package com.springcloud.microservice.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author : 周世雄 <br>
 * Date : 2018/11/27 17:14 <br>
 * E-mail : zhoushixiong@chinasoftinc.com
 * Description :
 */
@RestController
public class ConfigClientController {

    // 绑定 Git 仓库配置文件中的profile属性
    @Value("${profile}")
    private String profile;

    @GetMapping("/profile")
    public String hello() {
        return this.profile;
    }
}
